package com.xy.modular.owner.model;

import javax.persistence.*;
import java.util.Date;

public class OwnerAuthToken {
    @Column(name = "owner_id")
    private String ownerId;

    private String token;

    /**
     * token过期时间
     */
    @Column(name = "expire_in")
    private Date expireIn;

    /**
     * 登录失败次数
     */
    @Column(name = "try_times")
    private Integer tryTimes;

    /**
     * @return owner_id
     */
    public String getOwnerId() {
        return ownerId;
    }

    /**
     * @param ownerId
     */
    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    /**
     * @return token
     */
    public String getToken() {
        return token;
    }

    /**
     * @param token
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 获取token过期时间
     *
     * @return expire_in - token过期时间
     */
    public Date getExpireIn() {
        return expireIn;
    }

    /**
     * 设置token过期时间
     *
     * @param expireIn token过期时间
     */
    public void setExpireIn(Date expireIn) {
        this.expireIn = expireIn;
    }

    /**
     * 获取登录失败次数
     *
     * @return try_times - 登录失败次数
     */
    public Integer getTryTimes() {
        return tryTimes;
    }

    /**
     * 设置登录失败次数
     *
     * @param tryTimes 登录失败次数
     */
    public void setTryTimes(Integer tryTimes) {
        this.tryTimes = tryTimes;
    }
}